#define _CRT_SECURE_NO_WARNINGS 1

/*
		两数相加
*/

struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2)
{
    struct ListNode* cur1 = l1;
    struct ListNode* cur2 = l2;

    //新链表
    struct ListNode* newhead = NULL;
    struct ListNode* newtail = NULL;

    //直接将对应位置上的节点数相加
    int carry = 0;
    while (cur1 || cur2 || carry)
    {
        //存储对应位置节点的两数之和
        int sum = carry;

        if (cur1)
        {
            sum += cur1->val;//先存入第一个数
            cur1 = cur1->next;
        }
        if (cur2)
        {
            sum += cur2->val;//在存入第二个数，这两步相当于相加
            cur2 = cur2->next;
        }
        carry = sum / 10;//进位数
        sum %= 10;//在新节点应该存入的数

        //创建新节点
        struct ListNode* node = (struct ListNode*)malloc(sizeof(struct ListNode));
        node->val = sum;
        node->next = NULL;

        //将新节点尾插到新链表中
        if (newhead == NULL)
        {
            newhead = node;
            newtail = node;
        }
        else
        {
            newtail->next = node;
            newtail = node;
        }
    }
    return newhead;
}


/*
        时间转换
*/

#include <stdio.h>

int main()
{
    long long seconds = 0;
    scanf("%lld", &seconds);

    int hour = 0;
    int min = 0;
    int second = 0;

    hour = seconds / 3600;
    min = (seconds - hour * 3600) / 60;
    second = seconds - hour * 3600 - min * 60;
    printf("%d %d %d", hour, min, second);
    return 0;
}

/*
        利用左移操作符实现2的n次方
*/

int main()
{
    int n = 0;
    scanf("%d", &n);
    printf("%d", 2 << (n - 1));
    return 0;
}

/*
        输入年龄，显示多少秒
*/
#include <stdio.h>
#include <math.h>

int main()
{
    int age = 0;
    scanf("%d", &age);
    long long seconds = age * 3.156 * pow(10, 7);
    printf("%lld", seconds);
    return 0;
}

/*
*   统计成绩
*/

int main()
{
    int n = 0;
    scanf("%d", &n);
    int m = n;
    double sum = 0;
    double cur = 0;
    double high = 0;
    double low = 0;
    while (n--)
    {
        scanf("%lf", &cur);
        sum += cur;
        if (high == 0)
        {
            high = cur;
            low = cur;
        }
        else
        {
            if (cur > high)
            {
                high = cur;
            }
            if (cur < low)
            {
                low = cur;
            }
        }
    }
    printf("%.2lf %.2lf %.2lf", high, low, sum / m);
    return 0;
}

/*
        计算三角形的周长和面积
*/

int main()
{
    int a = 0;
    int b = 0;
    int c = 0;
    scanf("%d %d %d", &a, &b, &c);
    double C = a + b + c;
    double p = C / 2;
    double S = pow(p * (p - a) * (p - b) * (p - c), 0.5);
    printf("circumference=%.2lf area=%.2lf", C, S);
}


/*
*   喝酸奶
*/

int main()
{
    int n = 0;
    int h = 0;
    int m = 0;
    scanf("%d %d %d", &n, &h, &m);
    if (m % h == 0)
    {
        printf("%d", n - m / h);
    }
    else
    {
        printf("%d", n - 1 - m / h);
    }
    return 0;
}